import request from '@/utils/request'

// 查询设备因子列表
export function listDeviceFactorData(query) {
  return request({
    url: '/business/deviceFactor/list',
    method: 'get',
    params: query
  })
}

// 查询设备因子详细
export function getDeviceFactorData(id) {
  return request({
    url: '/business/deviceFactor/' + id,
    method: 'get'
  })
}

// 新增设备因子
export function addDeviceFactorData(data) {
  return request({
    url: '/business/deviceFactor',
    method: 'post',
    data: data
  })
}

// 修改设备因子
export function updateDeviceFactorData(data) {
  return request({
    url: '/business/deviceFactor',
    method: 'put',
    data: data
  })
}

// 删除设备因子
export function delDeviceFactorData(ids) {
  return request({
    url: '/business/deviceFactor',
    method: 'delete',
    data: ids
  })
}
